package com.mm.cloth.model.request;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

/**
 * 登录请求模型类
 * 对应登录接口的请求参数
 */
public class LoginRequest {
    
    // 明确指定字段名，确保与API接口要求一致
    @Expose // 确保字段被序列化
    @SerializedName("username")
    private String username; // 虽然变量名是username，但序列化为phone字段

    @Expose // 确保字段被序列化
    @SerializedName("password")
    private String password;
    
    public LoginRequest() {
    }
    
    public LoginRequest(String username, String password) {
        this.username = username;
        this.password = password;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    @Override
    public String toString() {
        return "LoginRequest{" +
                "username='" + username + "'" +
                ", password='" + password + "'" +
                '}';
    }
}